home *** CD-ROM | disk | FTP | other *** search
- #include <MathTools.h>
-
- /*------------------------------------------------------------------------------*/
-
- int ReturnEven (int TheInt)
- /* Given an integer, return 1 + TheInt if it is odd, or TheInt if it is even */
- {
- return (TheInt % 2) ? TheInt+1 : TheInt;
- }
-
- /*------------------------------------------------------------------------------*/
-
- Boolean odd (long theval)
- {
- return (theval % 2);
- }
-
- /*------------------------------------------------------------------------------*/
-
- Boolean even (long theval)
- {
- return (!(theval % 2));
- }
-